import { Entity, Column } from 'typeorm';
import { BaseEntity } from './baseEntity';

/**
 * 待办事项表
 */

@Entity()
export class TBacklog extends BaseEntity {
  @Column({ type: 'varchar', name: 'title', comment: '标题' })
  title: string;

  @Column({ type: 'varchar', name: 'description', comment: '详情' })
  description: string;

  @Column({
    type: 'int',
    name: 'is_end',
    comment: '是否完成(0未完成，1已完成)',
  })
  isEnd: number;

  @Column({ type: 'datetime', name: 'stop_at', comment: '截止日期' })
  stopAt: Date;

  @Column({ type: 'int', name: 'index', comment: '序号' })
  index: number;
}
